package com.gph.saviorframework.wf.service.impl;

import com.gph.saviorframework.wf.dao.ProcessResultDao;
import com.gph.saviorframework.wf.model.ProcessResult;
import com.gph.saviorframework.wf.service.ActivitiProcessResultService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by root on 16-8-11.
 */
public class ActivitiProcessResultServiceImpl implements ActivitiProcessResultService{

    @Autowired
    private ProcessResultDao processResultDao;

    public void save(ProcessResult processResult) {
        processResultDao.save(processResult);
    }

    public void update(ProcessResult processResult) {
        processResultDao.update(processResult);
    }

    public ProcessResult get(String processInsId, String applyId) {
        return processResultDao.get(processInsId,applyId);
    }

    public void delete(String processInsId, String applyId) {
        processResultDao.delete(processInsId,applyId);
    }

    public ProcessResult getByApplyId(String applyId) {
        return processResultDao.getByApplyId(applyId);
    }

    public List<ProcessResult> getByType(String applyType) {
        return processResultDao.getByType(applyType);
    }

    public void batchDelete(List<ProcessResult> results) {
        processResultDao.batchDelete(results);
    }
}
